import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/generator/user/login',
    method: 'post',
    data: data,
  })
}

// 注册
export function register(data) {
  return request({
    url: '/generator/user/register',
    method: 'post',
    data: data,
  })
}

// 邮箱验证
export function checkEmail(data) {
  return request({
    url: '/generator/user/checkEmail',
    method: 'post',
    data: data,
  })
}
